package com.lanqiao.dao.impl;

import com.lanqiao.dao.TypeDao;
import com.lanqiao.entity.TypeInfo;
import com.lanqiao.util.ORMUtil;

import java.util.List;

public class TypeDaoImpl implements TypeDao {
    @Override
    public List<TypeInfo> typeList(int parent_id) {
        String sql="SELECT * FROM tb_type WHERE parent_id=?";
        List<TypeInfo> typeInfos = new ORMUtil().selectList(TypeInfo.class, sql,parent_id);
        //${pageContext.request.contextPath }
        return typeInfos;
    }
}
